#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H
#include <QTcpServer>
#include <QList>
//#include "mytcpserver.h"
#include "mytcpsocket.h"

class MyTcpServer : public QTcpServer
{
    //派生类支持信号槽
    Q_OBJECT
public slots:
    void deleteSocket(MyTcpSocket* mysocket);
public:
    MyTcpServer();
    static MyTcpServer& getInstance();
    void incomingConnection(qintptr socketDescriptor);
    QList<MyTcpSocket*> m_tcpSocketList;
};

#endif // MYTCPSERVER_H
